package com.wow.app.promotion.web.personal.module.screen;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import com.alibaba.citrus.turbine.Context;
import com.wow.app.biz.common.SessionUser;
import com.wow.app.biz.common.SessionUtil;
import com.wow.app.biz.page.PageService;
import com.wow.app.dal.dto.PageDO;

public class PageList {
	@Resource
	PageService pageService;
	
	public void execute(Context context,HttpSession session) {
		SessionUser sessionUser = SessionUtil.getSessionUser(session);
		if(sessionUser!=null){
			List<PageDO> pageList = pageService.getPageListByOwner(sessionUser.getLoginID());
			context.put("pageList", pageList);
		}
		
	}
}